package cn.lijiajia3515.cairo.core.exception;

import cn.lijiajia3515.cairo.core.business.ClientBusiness;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class ClientRequiredException extends BusinessException {
	protected static final ClientBusiness BUSINESS = ClientBusiness.Required;
	protected String client;

	public ClientRequiredException() {
		super("'Client' 不能为空", BUSINESS);
	}

	public ClientRequiredException(String client) {
		super("'Client' 错误", BUSINESS);
		this.client = client;
	}

	public ClientRequiredException(String message, Throwable throwable) {
		super(message, throwable, BUSINESS);
	}

	public ClientRequiredException(String message, Throwable throwable, String client) {
		super(message, throwable, BUSINESS);
		this.client = client;
	}
}
